#include "widget.h"
#include "ui_widget.h"
#include "QPushButton"
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    QPushButton* button = new QPushButton(this);
    button->move(200,200);
    button->setText("点我");
    connect(button,&QPushButton::clicked,this,&Widget::deal);
}

Widget::~Widget()
{
    delete ui;
}
void Widget::deal()
{
    this->setWindowTitle("deal 槽函数");
}


void Widget::on_pushButton_clicked()
{
    this->setWindowTitle("自定义槽");
}
